import { baseUrl, doRequestPost, doRequestGet } from '@/utils/request'

//const toolUrl = 'http://10.8.8.147:3001/host_125/information/'

//参数配置字典
export function getTableData() {
  return doRequestGet(baseUrl + 'recommend/tools/list', {})
}

export function updateParameter(query) {
  return doRequestPost(baseUrl + 'recommend/tools/update' + '?time=' + (+new Date()), query)
}


//投资日历
export function pageList(query) {
  return doRequestPost(baseUrl + 'tools/calendar/pageList' + '?time=' + (+new Date()), query)
}

export function deleteById(query) {
  return doRequestGet(baseUrl + 'tools/calendar/deleteById' + query.id + '?time=' + (+new Date()), {})
}

export function selectInfo(query) {
  return doRequestPost(baseUrl + 'tools/calendar/selectInfo' + '?time=' + (+new Date()), query)
}

export function selectData() {
  return doRequestPost(baseUrl + 'tools/calendar/selectData' + '?time=' + (+new Date()), {})
}

export function addInfo(query) {
  return doRequestPost(baseUrl + 'tools/calendar/addInfo' + '?time=' + (+new Date()), query)
}

export function updateInfo(query) {
  return doRequestPost(baseUrl + 'tools/calendar/update' + '?time=' + (+new Date()), query)
}

export function toolDelete(query) {
  return doRequestPost(baseUrl + 'tools/calendar/delete' + '?time=' + (+new Date()), query)
}

export function addInfoSc(query) {
  return doRequestPost(baseUrl + 'tools/calendar/addInfoSc' + '?time=' + (+new Date()), query)
}

export function updateSc(query) {
  return doRequestPost(baseUrl + 'tools/calendar/updateSc' + '?time=' + (+new Date()), query)
}
